import com.itheima.utils.SMSUtils;
import com.itheima.utils.ValidateCodeUtils;
import org.junit.Test;

public class message_send {
    @Test
    public void sendMessage(){
        try{
            SMSUtils.sendShortMessage(SMSUtils.VALIDATE_CODE,"15079574126","666666");
        }catch(Exception e){
            e.printStackTrace();
        }
    }

    @Test
    public void ValidateCode(){
        String code4String = ValidateCodeUtils.generateValidateCode4String(4);
        Integer integer = ValidateCodeUtils.generateValidateCode(4);
//        System.out.println(code4String);
        System.out.println(integer.toString());
    }
}
